.scanner-container {
  padding: 20px;
  min-height: calc(100vh - 120px);
}

.dark-theme .scanner-container {
  background-color: #121212;
  color: #ffffff;
}

.scanner-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dark-theme .scanner-header h1 {
  color: #ffffff;
}

.scanner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.scanner-section {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.dark-theme .scanner-section {
  background-color: #252530;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  display: flex;
  align-items: center;
}

.dark-theme .section-title {
  color: #e0e0e0;
}

.section-title i {
  margin-right: 8px;
  color: #4361ee;
}

.dark-theme .section-title i {
  color: #818cf8;
}

.upload-area {
  border: 2px dashed #d0d5dd;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.dark-theme .upload-area {
  background: #1a1a1a;
  border: 2px dashed #3a3a45;
}

.upload-area:hover {
  border-color: #818cf8;
  background: #252530;
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  color: #4361ee;
}

.dark-theme .upload-icon {
  color: #818cf8;
}

.upload-text h3 {
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.dark-theme .upload-text h3 {
  color: #e0e0e0;
}

.upload-text p {
  color: #667085;
  margin-bottom: 10px;
}

.dark-theme .upload-text p {
  color: #aaaaaa;
}

.upload-button {
  padding: 8px 16px;
  background-color: #4361ee;
  color: white;
  border-radius: 6px;
  font-weight: 500;
  margin-top: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.dark-theme .upload-button {
  background-color: #818cf8;
}

.upload-button:hover {
  background-color: #717cf8;
}

.file-list {
  margin-top: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background-color: #f9fafb;
  margin-bottom: 10px;
}

.dark-theme .file-item {
  background: #2a2a35;
  border-bottom: 1px solid #3a3a45;
}

.file-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-theme .file-item:hover {
  background: #333340;
}

.file-icon {
  margin-right: 10px;
  color: #4361ee;
}

.dark-theme .file-icon {
  color: var(--primary-color);
}

.file-info {
  flex: 1;
}

.file-name {
  font-weight: 500;
  margin-bottom: 2px;
  color: #333;
}

.dark-theme .file-name {
  color: #e0e0e0;
}

.file-size {
  font-size: 13px;
  color: #667085;
}

.dark-theme .file-size {
  color: #aaaaaa;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.file-action-btn {
  background: none;
  border: none;
  color: #667085;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.dark-theme .file-action-btn {
  color: var(--btn-text);
}

.file-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.dark-theme .file-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.processing-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.processing-option {
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e7ff;
  background-color: #f5f7ff;
  cursor: pointer;
  transition: all 0.3s;
}

.dark-theme .processing-option {
  background-color: #252530;
  border-color: #3a3a45;
}

.processing-option:hover, .processing-option.selected {
  border-color: #818cf8;
  box-shadow: 0 2px 10px rgba(129, 140, 248, 0.2);
}

.option-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.option-radio {
  margin-right: 10px;
}

.option-title {
  font-weight: 600;
  color: #333;
}

.dark-theme .option-title {
  color: #e0e0e0;
}

.option-description {
  color: #667085;
  font-size: 14px;
  padding-left: 25px;
}

.dark-theme .option-description {
  color: #aaaaaa;
}

.processing-params {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e7ff;
}

.dark-theme .processing-params {
  border-color: #3a3a45;
}

.params-group {
  margin-bottom: 15px;
}

.params-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.dark-theme .params-label {
  color: #e0e0e0;
}

.params-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  transition: all 0.3s;
}

.dark-theme .params-input {
  background-color: #1a1a1a;
  border-color: #3a3a45;
  color: #e0e0e0;
}

.params-input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.slider-container {
  padding: 0 5px;
}

.slider-value {
  font-size: 14px;
  color: #667085;
  text-align: right;
  margin-top: 5px;
}

.dark-theme .slider-value {
  color: #aaaaaa;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background-color: #4361ee;
  color: white;
}

.dark-theme .btn-primary {
  background-color: #818cf8;
}

.btn-primary:hover {
  background-color: #717cf8;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
}

.dark-theme .btn-secondary {
  background-color: #2a2a35;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background-color: #333340;
}

.results-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .results-section {
    grid-template-columns: 1fr;
  }
}

.results-preview {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 15px;
  min-height: 300px;
}

.dark-theme .results-preview {
  background-color: #252530;
  border: 1px solid #3a3a45;
}

.preview-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.dark-theme .preview-title {
  color: #e0e0e0;
}

.preview-image {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
}

.preview-content {
  font-family: monospace;
  white-space: pre-wrap;
  padding: 15px;
  background-color: white;
  border-radius: 6px;
  border: 1px solid #e0e7ff;
  color: #333;
  max-height: 300px;
  overflow-y: auto;
}

.dark-theme .preview-content {
  background-color: #1a1a1a;
  border-color: #3a3a45;
  color: #e0e0e0;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dark-theme .loading-overlay {
  background-color: rgba(26, 27, 30, 0.8);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(67, 97, 238, 0.2);
  border-radius: 50%;
  border-top-color: #4361ee;
  animation: spin 1s linear infinite;
}

.dark-theme .loading-spinner {
  border: 5px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary-color);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dark-theme .upload-placeholder {
  color: #aaaaaa;
}

.dark-theme .upload-hint {
  color: #888888;
}

.dark-theme .preview-container {
  background: #252530;
  border: 1px solid #3a3a45;
}

.dark-theme .preview-image {
  border: 1px solid #3a3a45;
}

.dark-theme .remove-preview {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.dark-theme .remove-preview:hover {
  background: rgba(0, 0, 0, 0.9);
}

.dark-theme .file-list {
  background: #252530;
  border: 1px solid #3a3a45;
}

.dark-theme .remove-file {
  color: #818cf8;
}

.dark-theme .remove-file:hover {
  color: #717cf8;
}

.dark-theme .audio-control-panel {
  background: rgba(26, 26, 26, 0.95);
  border-top: 1px solid #2a2a35;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .progress-bar-bg {
  background: #3a3a45;
}

.dark-theme .progress-bar-fill {
  background: #818cf8;
}

.dark-theme .time-display {
  color: #aaaaaa;
}

.dark-theme .control-btn {
  background: #818cf8;
  color: #ffffff;
}

.dark-theme .control-btn:hover {
  background: #717cf8;
}

.dark-theme .volume-control,
.dark-theme .speed-control {
  color: #e0e0e0;
}

.dark-theme .volume-control input,
.dark-theme .speed-control select {
  background: #252530;
  border-color: #3a3a45;
  color: #e0e0e0;
}

.upload-box {
  background-color: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.dark-theme .upload-box {
  background-color: #1a1a1a;
  border-color: #3a3a45;
}

.intelligence-analysis {
  background-color: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.dark-theme .intelligence-analysis {
  background-color: #1a1a1a;
  border-color: #3a3a45;
}

.score-audio {
  background-color: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.dark-theme .score-audio {
  background-color: #1a1a1a;
  border-color: #3a3a45;
} 